#include "wm_hal.h"

void HAL_MspInit(void)
{

}

void HAL_UART_MspInit(UART_HandleTypeDef* huart)
{
	if (huart->Instance == UART2)
	{
		__HAL_RCC_UART2_CLK_ENABLE();
		__HAL_RCC_GPIO_CLK_ENABLE();
		
		HAL_NVIC_SetPriority(UART2_5_IRQn, 0);
		HAL_NVIC_EnableIRQ(UART2_5_IRQn);
	}
}

void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
{
	if (huart->Instance == UART2)
	{
		__HAL_RCC_UART2_CLK_DISABLE();
		HAL_NVIC_DisableIRQ(UART2_5_IRQn);
	}

}